package donnees;
import java.util.ArrayList;
import java.util.HashMap;

public abstract class TypeVille {
	static HashMap<String, TypeVille> typesVilles = new HashMap<String, TypeVille>();
	String nom = "";
    protected void addNewTypeVille (TypeVille t) {
    	typesVilles.put(t.getNom().toLowerCase(), t);
    }
    public String getNom() {
    	return nom;
    }
    public static ArrayList<String> getListeTypesVilles () {
    	return new ArrayList<String>(typesVilles.keySet());
    }
    public static TypeVille getTypeVilleByName (String n) {
    	return typesVilles.get(n.toLowerCase());
    }
    public abstract int getNbPixelsLarge ();
}